home *** CD-ROM | disk | FTP | other *** search
/ Internet News 2000 October / Internet News 2000-10 - CD-ROM.rar / IN200010.BIN / Linux / netscape-i686-pc-linux-gnu-sea.tar.gz / netscape-i686-pc-linux-gnu-sea.tar / netscape-installer / xpi / langjajp.xpi / install.js
Text File  |  2000-08-07  |  953b  |  39 lines

  1. var err;
  2. var fProgram;
  3.  
  4. // --- LOCALIZATION NOTE: translate only these ---
  5. var prettyName = "Japanese-Japan Language Pack";
  6. var regName    = "locales/netscape/ja-JP";
  7. var chromeName = "locales/ja-JP";
  8. // --- END LOCALIZABLE RESOURCES ---
  9.  
  10. err = initInstall(prettyName, regName, "5.0.0.0000000000"); 
  11. logComment("initInstall: " + err);
  12.  
  13. fProgram = getFolder("Program");
  14. logComment("fProgram: " + fProgram);
  15.  
  16. err = addDirectory("",
  17.                    "5.0.0.0000000000",
  18.                    "bin",
  19.                    fProgram,
  20.                    "",
  21.                    true);
  22. logComment("addDirectory() returned: " + err);
  23.  
  24. // register chrome
  25. var cf = getFolder("Chrome");
  26. registerChrome(LOCALE | DELAYED_CHROME, getFolder(cf, chromeName));
  27.  
  28. // check return value
  29. if(err == SUCCESS)
  30. {
  31.     err = performInstall(); 
  32.     logComment("performInstall() returned: " + err);
  33. }
  34. else
  35. {
  36.     cancelInstall(err);
  37.     logComment("cancelInstall due to error: " + err);
  38. }
  39.